using System;
using System.Collections.Generic;
using System.Text;
using Rapier.Kodachi.Shared;
using iTunesLib;
using System.Drawing;

namespace Rapier.Kodachi.iTunes.Actions
{
    public class PlayPause : iTunesActionBase
    {
        #region Constructor
        public PlayPause(Plugin plugin)
            : base(plugin, "Rapier.Kodachi.iTunes.PlayPause", "Play / Pause", "Play / Pause current track.")
        {
            GetImage = delegate() { return playPauseImage; };
        }
        #endregion

        #region Action Members
        public override void Execute(Item[] directItems, Item[] indirectItems)
        {
            if(base.IsItunesRunning())
                itunes.PlayPause();
        }
        #endregion
    }
}
